package com.yilife.hmstr.controller;

import com.yilife.hmstr.domain.mt;
import com.yilife.hmstr.service.impl.MeridianTableServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/mt")
@Api(description = "经络表数据的增删改查")
public class MeridianTableController {

	@Autowired
	private MeridianTableServiceImpl meridianTableServiceImpl;

	@RequestMapping(value = "/del",method = RequestMethod.DELETE)
	@ApiOperation(value = "根据健康管理系统检测报告id删除经络表数据")
	public void del(@RequestBody Long hmstrId){
		meridianTableServiceImpl.delByPid(hmstrId);
	}

	@RequestMapping(value = "/sel",method = RequestMethod.GET)
	@ApiOperation(value = "根据健康管理系统检测报告id查询经络表数据")
	public mt select(@RequestParam Long hmstrId){
		return meridianTableServiceImpl.selectByPid(hmstrId);
	}
}
